package com.powernode;

import com.powernode.spring6.service.OrderService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author JiangZhaoFeng
 * @Date 2025/8/4 16:55
 * @Description:
 */
public class ConstructorTestTwo {

    @Test
    public void testConstructor() {
        ApplicationContext context = new ClassPathXmlApplicationContext("order.xml");
        OrderService orderService = context.getBean("orderServiceBean", OrderService.class);
        orderService.delete();
    }
}
